<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>

<table class="table table-striped table-bordered table-hover">
	<thead>
		<tr>
			<th class="center">序号</th>
			<th class="center">字段名</th>
			<th class="center">字段类型</th>
			<th class="center">字段描述</th>
			<th class="center">是否主键/唯一键</th>
			<th class="center">是否增量字段</th>
			<th class="center">外键表</th>
			<th class="center">外键字段</th>
		</tr>
	</thead>
	<tbody id="table_table_body">
		<c:forEach var="col" items="${cols}" varStatus="stc">
			<tr>
				<td style="vertical-align: middle; text-align: center;">${stc.count}</td>
				<td>
					${col.colName}
				</td>
				<td>
					${col.colType}
				</td>
				<td>
					${col.colComment}
				</td>
				<td>
					<c:if test="${col.isPk == 1}">是</c:if>
				</td>
				<td>
					<c:if test="${col.isIc == 1}">是</c:if>
				</td>
				<td>
					${col.fkTableName}
				</td>
				<td>
					${col.fkTablecolName}
				</td>
			</tr>
		</c:forEach>
	</tbody>
</table>